package com.dk.service;

import java.util.List;

import com.dk.pojo.User;
import com.github.pagehelper.PageInfo;

public interface UserService {

	User registerInfo(String username);

	void insertUser(User u);

	void updateByUser(User u);

	PageInfo<User> getServerUserInfo(String username, Integer pageNum, Integer pageSize);

	void deleteInfoById(Integer uid);

	int deleteBatch(Integer[] ids);

	User toUpdate(Integer uid);

	int updateUser(User user);

	void addUser(User user, Integer[] roleIds);

	User findUserByUid(Integer uid);

	void updateUser(User user, Integer[] roleIds);

}
